import request from '@/utils/request';

export function roleList(data) {
    return request({
        url: '/sys_api_role/all',
        method: 'get',
        params: data
    })
}
export function treeSelect(data) {
    return request({
        url: '/sys_api_menu/tree',
        method: 'get',
        params: data
    })
}
export function addRole(data) {
    return request({
        url: '/sys_api_role/add',
        method: 'post',
        data
    })
}
export function editRole(data) {
    return request({
        url: '/sys_api_role/edit',
        method: 'post',
        data
    })
}
export function deleteRole(data) {
    return request({
        url: '/sys_api_role/delete',
        method: 'post',
        data
    })
}